
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weixin"></use>
                    </svg>
                    <div class="name">微信</div>
                    <div class="fontclass">#icon-weixin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qq"></use>
                    </svg>
                    <div class="name">QQ</div>
                    <div class="fontclass">#icon-qq</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-unie61d"></use>
                    </svg>
                    <div class="name">微博</div>
                    <div class="fontclass">#icon-unie61d</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhifuicon"></use>
                    </svg>
                    <div class="name">支付icon</div>
                    <div class="fontclass">#icon-zhifuicon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tengxunweibo"></use>
                    </svg>
                    <div class="name">腾讯微博</div>
                    <div class="fontclass">#icon-tengxunweibo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiansheyinxing"></use>
                    </svg>
                    <div class="name">建设银行</div>
                    <div class="fontclass">#icon-jiansheyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiangsuyinxing"></use>
                    </svg>
                    <div class="name">江苏银行</div>
                    <div class="fontclass">#icon-jiangsuyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nanjingyinxing"></use>
                    </svg>
                    <div class="name">南京银行</div>
                    <div class="fontclass">#icon-nanjingyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weixinzhifu"></use>
                    </svg>
                    <div class="name">微信支付</div>
                    <div class="fontclass">#icon-weixinzhifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guangfayinxing"></use>
                    </svg>
                    <div class="name">广发银行</div>
                    <div class="fontclass">#icon-guangfayinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhifubao"></use>
                    </svg>
                    <div class="name">支付宝</div>
                    <div class="fontclass">#icon-zhifubao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianjinyinxing"></use>
                    </svg>
                    <div class="name">天津银行</div>
                    <div class="fontclass">#icon-tianjinyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hebeiyinxing"></use>
                    </svg>
                    <div class="name">河北银行</div>
                    <div class="fontclass">#icon-hebeiyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zejuyinxing"></use>
                    </svg>
                    <div class="name">zeju-银行</div>
                    <div class="fontclass">#icon-zejuyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-minshengyinxing"></use>
                    </svg>
                    <div class="name">民生银行</div>
                    <div class="fontclass">#icon-minshengyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huarunyinxing"></use>
                    </svg>
                    <div class="name">华润银行</div>
                    <div class="fontclass">#icon-huarunyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jingdong01"></use>
                    </svg>
                    <div class="name">京东</div>
                    <div class="fontclass">#icon-jingdong01</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dongyayinxing"></use>
                    </svg>
                    <div class="name">东亚银行</div>
                    <div class="fontclass">#icon-dongyayinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-gongshangyinxing"></use>
                    </svg>
                    <div class="name">工商银行</div>
                    <div class="fontclass">#icon-gongshangyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiansheyinxing1"></use>
                    </svg>
                    <div class="name">建设银行</div>
                    <div class="fontclass">#icon-jiansheyinxing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pufayinxing1"></use>
                    </svg>
                    <div class="name">浦发银行</div>
                    <div class="fontclass">#icon-pufayinxing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-youzhengyinxing"></use>
                    </svg>
                    <div class="name">邮政银行</div>
                    <div class="fontclass">#icon-youzhengyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-beijingyinxing"></use>
                    </svg>
                    <div class="name">北京银行</div>
                    <div class="fontclass">#icon-beijingyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guangdayinxing"></use>
                    </svg>
                    <div class="name">光大银行</div>
                    <div class="fontclass">#icon-guangdayinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nanjingyinxing1"></use>
                    </svg>
                    <div class="name">南京银行</div>
                    <div class="fontclass">#icon-nanjingyinxing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhaoshangyinxing"></use>
                    </svg>
                    <div class="name">招商银行</div>
                    <div class="fontclass">#icon-zhaoshangyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-suningyigou"></use>
                    </svg>
                    <div class="name">苏宁易购</div>
                    <div class="fontclass">#icon-suningyigou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jinchengyinxing"></use>
                    </svg>
                    <div class="name">晋城银行</div>
                    <div class="fontclass">#icon-jinchengyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-hankouyinxing"></use>
                    </svg>
                    <div class="name">汉口银行</div>
                    <div class="fontclass">#icon-hankouyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongxinyinxing"></use>
                    </svg>
                    <div class="name">中信银行</div>
                    <div class="fontclass">#icon-zhongxinyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-minshengyinxing1"></use>
                    </svg>
                    <div class="name">民生银行</div>
                    <div class="fontclass">#icon-minshengyinxing1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaotongyinxing"></use>
                    </svg>
                    <div class="name">交通银行</div>
                    <div class="fontclass">#icon-jiaotongyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-nongyeyinxing"></use>
                    </svg>
                    <div class="name">农业银行</div>
                    <div class="fontclass">#icon-nongyeyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-comiiszhifubao"></use>
                    </svg>
                    <div class="name">支付宝</div>
                    <div class="fontclass">#icon-comiiszhifubao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-tianmaotmall"></use>
                    </svg>
                    <div class="name">天猫 tmall</div>
                    <div class="fontclass">#icon-tianmaotmall</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pufayinxing"></use>
                    </svg>
                    <div class="name">浦发银行</div>
                    <div class="fontclass">#icon-pufayinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huifengyinxing"></use>
                    </svg>
                    <div class="name">汇丰银行</div>
                    <div class="fontclass">#icon-huifengyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huaxingyinxing"></use>
                    </svg>
                    <div class="name">华兴银行</div>
                    <div class="fontclass">#icon-huaxingyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dangdangwang"></use>
                    </svg>
                    <div class="name">当当网</div>
                    <div class="fontclass">#icon-dangdangwang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhongguoyinhangbank1193437easyiconnet"></use>
                    </svg>
                    <div class="name">中国银行</div>
                    <div class="fontclass">#icon-zhongguoyinhangbank1193437easyiconnet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pinganyinxing"></use>
                    </svg>
                    <div class="name">平安银行</div>
                    <div class="fontclass">#icon-pinganyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiaotongyinxing-copy"></use>
                    </svg>
                    <div class="name">交通银行</div>
                    <div class="fontclass">#icon-jiaotongyinxing-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bank-015-copy"></use>
                    </svg>
                    <div class="name">农业银行</div>
                    <div class="fontclass">#icon-bank-015-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-umidd16"></use>
                    </svg>
                    <div class="name">微信支付</div>
                    <div class="fontclass">#icon-umidd16</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-iconcopy-copy"></use>
                    </svg>
                    <div class="name">上海银行</div>
                    <div class="fontclass">#icon-iconcopy-copy</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yihaodian1193425easyiconnet"></use>
                    </svg>
                    <div class="name">1号店</div>
                    <div class="fontclass">#icon-yihaodian1193425easyiconnet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huaqiyinxing"></use>
                    </svg>
                    <div class="name">花旗银行</div>
                    <div class="fontclass">#icon-huaqiyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chengduyinxing"></use>
                    </svg>
                    <div class="name">成都银行</div>
                    <div class="fontclass">#icon-chengduyinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-1"></use>
                    </svg>
                    <div class="name">常熟银行</div>
                    <div class="fontclass">#icon-1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-huaxiayinxing"></use>
                    </svg>
                    <div class="name">华夏银行</div>
                    <div class="fontclass">#icon-huaxiayinxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon"></use>
                    </svg>
                    <div class="name">星展银行</div>
                    <div class="fontclass">#icon-icon</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-04672290"></use>
                    </svg>
                    <div class="name">阜新银行</div>
                    <div class="fontclass">#icon-04672290</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-04615510"></use>
                    </svg>
                    <div class="name">长沙银行</div>
                    <div class="fontclass">#icon-04615510</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-04314730"></use>
                    </svg>
                    <div class="name">临商银行</div>
                    <div class="fontclass">#icon-04314730</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-04202220"></use>
                    </svg>
                    <div class="name">大连银行</div>
                    <div class="fontclass">#icon-04202220</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guankan"></use>
                    </svg>
                    <div class="name">观看</div>
                    <div class="fontclass">#icon-guankan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fenqishangcheng"></use>
                    </svg>
                    <div class="name">分期商城</div>
                    <div class="fontclass">#icon-fenqishangcheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-pengyouquan"></use>
                    </svg>
                    <div class="name">朋友圈</div>
                    <div class="fontclass">#icon-pengyouquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kongjian"></use>
                    </svg>
                    <div class="name">空间</div>
                    <div class="fontclass">#icon-kongjian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weixin1"></use>
                    </svg>
                    <div class="name">微信</div>
                    <div class="fontclass">#icon-weixin1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weibo"></use>
                    </svg>
                    <div class="name">微博</div>
                    <div class="fontclass">#icon-weibo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-QQ"></use>
                    </svg>
                    <div class="name">QQ</div>
                    <div class="fontclass">#icon-QQ</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
